<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link type="text/css" rel="stylesheet" href="js/datejs/calendar.css" >
	<script type="text/javascript" src="js/datejs/calendar.js" ></script>  
	<script type="text/javascript" src="js/datejs/calendar-zh.js" ></script>
	<script type="text/javascript" src="js/datejs/calendar-setup.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"></jsp:include>
	
	<div class="container">
	  <div class="row">
		<div class="span9">
			<form class="form-horizontal" action="toNewTask.jspx" method="post">
        <fieldset>
          <legend>添加新任务</legend>
          <div class="control-group">
            <label class="control-label" for="input01">任务名称</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="taskName" style="height:25px;">
              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">开始时间</label>
            <div class="controls">
              <input type="text"  class="span5" id="EntTime1"  x-webkit-speech="undefined" name="startTime" onclick="return showCalendar('EntTime1', 'y-mm-dd');" style="height:25px;"  />
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">截止时间</label>
            <div class="controls">
              <input type="text"  class="span5" id="EntTime2"  x-webkit-speech="undefined" name="endTime" onclick="return showCalendar('EntTime2', 'y-mm-dd');" style="height:25px;"  />
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">任务描述</label>
            <div class="controls">
              <textarea class="span5" rows="8" name="taskContent"></textarea>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">状态</label>
            <div class="controls">
              <select id="multiSelect"  name="state" id="state">
                <option value="1">新任务</option>
                <option value="2">进行中</option>
                <option value="3">已完成</option>
              </select>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect" >级别</label>
            <div class="controls">
              <select id="multiSelect" name="level">
                <option value="1">重要紧急</option>
                <option value="2">重要不紧急</option>
                <option value="3">紧急不重要</option>
                <option value="4">不紧急不重要</option>
              </select>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">负责人</label>
            <div class="controls">
              <select id="multiSelect" name="proUserId">
                <c:forEach items="${userList}" var="user">
					<option value="${user.user_id}">${user.user_name}</option>
				</c:forEach>
              </select>
            </div>
          </div>
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <button class="btn" onclick="location.back()">返回</button>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>
</body>
</html>
